package com.sun.showcase.client.domain.mall;

import org.apache.commons.lang3.builder.EqualsBuilder;
import org.apache.commons.lang3.builder.HashCodeBuilder;
import org.apache.commons.lang3.builder.ToStringBuilder;

public class MemberLevel implements java.io.Serializable{
	private static final long serialVersionUID = 5454155825314635342L;
    /**
     * ID       db_column: id 
     */	
	private String id;
    /**
     * 会员id       db_column: member_id
     */
	private String memberId;
    /**
     * 会员名       db_column: member_name
     */
	private String memberName;
    /**
     * 父级id       db_column: parent_id
     */
	private String parentId;
    /**
     * 父级名       db_column: parent_name
     */
	private String parentName;
    /**
     * 父级层级       db_column: parent_level
     */
	private Integer parentLevel;
    /**
     * 创建时间       db_column: create_date
     */
	private java.util.Date createDate;

	private String parentAgentFlag;

	private String parentHeadImage;

	private String memberHeadImage;

	//columns END

	public MemberLevel(){
	}

	public MemberLevel(
		String id
	){
		this.id = id;
	}

	public String getMemberHeadImage() {
		return memberHeadImage;
	}

	public void setMemberHeadImage(String memberHeadImage) {
		this.memberHeadImage = memberHeadImage;
	}

	public String getParentHeadImage() {
		return parentHeadImage;
	}

	public void setParentHeadImage(String parentHeadImage) {
		this.parentHeadImage = parentHeadImage;
	}

	public String getParentAgentFlag() {
		return parentAgentFlag;
	}

	public void setParentAgentFlag(String parentAgentFlag) {
		this.parentAgentFlag = parentAgentFlag;
	}

	public void setId(String value) {
		this.id = value;
	}

	public String getId() {
		return this.id;
	}
	public void setMemberId(String value) {
		this.memberId = value;
	}

	public String getMemberId() {
		return this.memberId;
	}
	public void setMemberName(String value) {
		this.memberName = value;
	}

	public String getMemberName() {
		return this.memberName;
	}
	public void setParentId(String value) {
		this.parentId = value;
	}

	public String getParentId() {
		return this.parentId;
	}
	public void setParentName(String value) {
		this.parentName = value;
	}

	public String getParentName() {
		return this.parentName;
	}
	public void setParentLevel(Integer value) {
		this.parentLevel = value;
	}

	public Integer getParentLevel() {
		return this.parentLevel;
	}
	public void setCreateDate(java.util.Date value) {
		this.createDate = value;
	}
	
	public java.util.Date getCreateDate() {
		return this.createDate;
	}

	public String toString() {
		return ToStringBuilder.reflectionToString(this);
	}
	
	public int hashCode() {
		return new HashCodeBuilder()
			.append(getId())
			.toHashCode();
	}
	
	public boolean equals(Object obj) {
		if(obj instanceof MemberLevel == false) return false;
		if(this == obj) return true;
		MemberLevel other = (MemberLevel)obj;
		return new EqualsBuilder()
			.append(getId(),other.getId())
			.isEquals();
	}
}

